package com.ias.train.common;

/**
 * @program: train
 * @description: 返回结果状态枚举类
 * @author: Daniel Shen
 * @create: 2022-04-23 15:23
 */
public enum MessageStatusCode {
    SUCCESS(200,"操作成功！"),
    ERROR(400,"操作失败！"),
    PASSWORD_NOT_CORRECT(3001, "密码不正确，请尝试再登录!"),
    ACCOUNT_OR_PASSWORD_NOT_CORRECT(3002, "用户名或密码不准确，请尝试再登录！"),
    ACCOUNT_NOT_CORRECT(3003, "用户名不正确，请尝试再登录！"),
    NOT_LOGIN(3004, "尚未登录!"),
    INVALID_REQUEST_HEADER(6005, "无效的请求header信息"),
    INVALID_ACCESS_TOKEN(6010, "无效的access_token！"),
    INVALID_PARAMETER_DATA(6020, "无效的参数数据！"),
    INSERT_SAME_RECORD(7001, "存在相同记录!"),
    EXIST_SUB_DICTIONARY_RECORD(7010, "存在子目录"),
    EXIST_SUB_ELEMENT_RECORD(7011,"存在子元素");

    private Integer code;
    private String message;

    MessageStatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
